﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyOA.DAL;
using MyOA.Model;

namespace MyOA.BLL
{
    public class FileLeftManage
    {
        FileLeftService service = new FileLeftService();

        /// <summary>
        /// 根据是否删除来获取文件信息
        /// </summary>
        /// <param name="ifDelete">是否删除</param>
        /// <returns>文件信息</returns>
        public IList<FileInfo> getFileInfoByIfDelete(int ifDelete)
        {
            return service.getFileInfoByIfDelete(ifDelete);
        }

        /// <summary>
        /// 根据parentId来获取文件信息
        /// </summary>
        /// <param name="parentId"></param>
        /// <returns>文件信息</returns>
        public IList<FileInfo> getFileInfoByParentId(int parentId)
        {
            return service.getFileInfoByParentId(parentId);
        }
    }
}
